<html>
<head><meta charset="utf-8"><title>Unresolved identifiers scope · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html">Unresolved identifiers scope</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232103186"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Unresolved%20identifiers%20scope/near/232103186" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ivan770 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html#232103186">(Mar 27 2021 at 17:00)</a>:</h4>
<p>Is it ok to add an additional scope for <a href="https://github.com/rust-analyzer/rust-analyzer/issues/8216">https://github.com/rust-analyzer/rust-analyzer/issues/8216</a>, that relies on <code>ExprId</code> rather than on <code>PatId</code>, as we don't have a pattern to reference yet?</p>



<a name="232103202"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Unresolved%20identifiers%20scope/near/232103202" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ivan770 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html#232103202">(Mar 27 2021 at 17:00)</a>:</h4>
<p>Something like <code>StmtScope</code></p>



<a name="232103357"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Unresolved%20identifiers%20scope/near/232103357" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html#232103357">(Mar 27 2021 at 17:02)</a>:</h4>
<p>I'm not sure it makes sense to model this as a scope at all?</p>



<a name="232104395"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Unresolved%20identifiers%20scope/near/232104395" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ivan770 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html#232104395">(Mar 27 2021 at 17:18)</a>:</h4>
<p>In that case I'll need to iterate over all calls in current body somewhere in <code>ide_completion</code>, but that looks kinda hacky</p>



<a name="232104768"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Unresolved%20identifiers%20scope/near/232104768" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> ivan770 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Unresolved.20identifiers.20scope.html#232104768">(Mar 27 2021 at 17:24)</a>:</h4>
<p>Hmm, on the other hand, having a scopes consisting only of unresolved identifiers doesn't seem like a good idea too</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>